From 0c97488f1eaba99c3e647035e42e4e54d74d31bd Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Mon, 5 Sep 2005 14:45:19 +0000 Subject: [PATCH] Only remove domain from store once it's suspended. Signed-off-by: Christian Limpach --- tools/python/xen/xend/XendCheckpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index 81d34b8f45..39616bd079 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -70,6 +70,8 @@ def save(xd, fd, dominfo, live): if l.rstrip() == "suspend": log.info("suspending %d" % dominfo.id) xd.domain_shutdown(dominfo.id, reason='suspend') + dominfo.state_wait("suspended") + log.info("suspend %d done" % dominfo.id) if dominfo.store_channel: try: dominfo.db.releaseDomain(dominfo.id) @@ -78,8 +80,6 @@ def save(xd, fd, dominfo, live): "error in domain release on xenstore: %s", ex) pass - dominfo.state_wait("suspended") - log.info("suspend %d done" % dominfo.id) child.tochild.write("done\n") child.tochild.flush() if filter(lambda (fd, event): event & select.POLLHUP, r): -- 2.30.2